<template>
  <div class="asset-detail-tabs">
    <el-tabs v-model="activeName" type="card">
      <el-tab-pane label="歌曲" name="1">
        <SearchSongs :keywords="keywords"></SearchSongs>
      </el-tab-pane>

      <el-tab-pane label="歌单" name="2">
        <SearchLists :keywords="keywords"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import SearchSongs from "../components/searchPages/SearchSongs";
import SearchLists from "../components/searchPages/SearchLists";
export default {
  name: "Search",
  data() {
    return {
      activeName: "1",
      keywords: "",
    };
  },
  computed: {},
  components: {
    SearchSongs,
    SearchLists,
  },
  mounted() {
    this.getParams();
  },
  watch: {
    $route() {
      this.getParams();
    },
  },
  methods: {
    getParams() {
      this.keywords = this.$route.query.kw;
    },
  },
};
</script>

<style scope>
.asset-detail-tabs {
  min-height: 900px;
  background-color: #eceef3;
}
/* //修改tab-item样式 */
.el-tabs__item {
  width: 600px;
  height: 75px;
  line-height: 75px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
.el-tabs__item:hover {
  color: #1d953f;
  font-size: 24px;
  font-weight: bold;
}
/*   
  // 修改nav背景色 */
.el-tabs__nav-scroll {
  background-color: #eceef3;
}

/* //去除顶部线 */
.el-tabs--card > .el-tabs__header .el-tabs__nav {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin-left: 340px;
  margin-top: 35px;
  border: none;
  background-color: #f8f9fa;
}

/* //内容区 */
.el-tabs__content {
  width: 1200px;
  background-color: #f8f9fa;
  margin-top: -16px;
  margin-left: 340px;

  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* //选中时样式设置 */
.el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  /* text-decoration: underline 3px solid #1d953f; */
  color: #1d953f;
  border: none;
  border-bottom: 3px solid #1d953f;
  border-left: 1px solid #eceef3;
  border-right: 1px solid #eceef3;
}
</style>